﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public interface IAuthorityRepository
    {
        bool AddNewAuthority(Authority authority);

        bool DeleteAuthority(int AuthorityId);

        bool UpdateAuthority(Authority authority);

        Authority GetAuthorityDetails(int AuthorityId);//获得一条记录select AuthorityName,LevelId from Authority where AuthorityId=@AuthorityId"

        List<AuthorityLevel> GetAllAuthorityLevelName();//获得List的数据select LevelId,LevelName from AuthorityLevel

        List<Authority> GetAuthorityAndLevel();
        //获得List的数据select AuthorityID,AuthorityName,LevelName from AuthorityLevel join Authority on Authority.LevelId=AuthorityLevel.LevelId
    }
}
